package com.fubowen.lepton.ui.reader

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.os.bundleOf
import com.fubowen.lepton.databinding.FragmentReaderSettingBinding
import com.fubowen.lepton.ui.base.PERCENT_HEIGHT
import com.fubowen.lepton.ui.base.ThemePopupWindowFragment

class BookSettingFragment : ThemePopupWindowFragment() {

    private lateinit var binding: FragmentReaderSettingBinding

    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View {
        binding = FragmentReaderSettingBinding.inflate(inflater, container, false)
        return binding.root
    }

    companion object {

        fun newInstance(percentHeight: Float): BookSettingFragment {
            return BookSettingFragment().apply {
                arguments = bundleOf(PERCENT_HEIGHT to percentHeight)
            }
        }
    }
}